package com.store.bookstore_backend.service;

import com.store.bookstore_backend.dto.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface BookstoreOrderService {
    //获取当前用户的全部订单
    public List<OrderDTO> getOrders(HttpServletRequest request);

    //获取订单详细信息
    public OrderInfoDTO getOrderById(HttpServletRequest request, String orderId);

    //创建订单
    public OrderInfoDTO createOrder(HttpServletRequest request, CreateOrderDTO createOrderDTO);

    //关闭订单
    public void closeOrder(HttpServletRequest request, String orderId);

    //支付订单
    public String payOrder(HttpServletRequest request, PayOrderDTO payOrderDTO);

    //支付成功
    public void paySuccess(PaySuccessDTO paySuccessDTO);

    //订单收货
    public void orderComplete(String orderId);
}
